@extends('admin.base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto">
            @if($contract_id) <h2>更新合同</h2> @else <h2>续签合同</h2> @endif
        </div>
        <div class="layui-card-body">
            @if($contract_id)
            <form class="layui-form" action="{{route('admin.renter.update',['contract_id'=>$contract_id])}}" method="post">
            @else
            <form class="layui-form" action="{{route('admin.renter.update',['renter_id'=>$renter_id])}}" method="post">
            @endif
                @include('admin.renter._form')
            </form>
        </div>
    </div>
@endsection

@section('script')
    @include('admin.renter._js')
@endsection
